package lab01;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入成绩");
        int grate = sc.nextInt();
        System.out.println(grate);
        if (grate>=85&&grate<=100){
            System.out.println("A");
        }
        else if(grate>=70&&grate<85){
            System.out.println("B");
        }
        else if (grate>=60&&grate<70){
            System.out.println("C");
        }
        else if (grate>=0&&grate<60){
            System.out.println("D");
        }
        else{
            System.out.println("对不起，您输入的成绩有误");
        }
    }
}
